<?php
class UrightViewModel extends Model
{
	protected $viewModel = true;

    protected $viewFields = array(

                'Uright'=>array('ID','USER_ID','ROLE_ID','YX','DM_YX','ZY','DM_ZY','BJ','DM_BJ'),

                'Role'=>array('id'=>'rid','name'=>'ROLE_NAME','desc'=>'rdesc'),

                );

	protected $viewCondition = array(

		'Uright.ROLE_ID'=>array('eqf','Role.id'),

	);
} 
?>